$(document).ready(function(){

	$("#vali").validate({
	
    	errorClass: 'shower',

		rules:{		
			
			name:{
						required: true  
						},
			file_location: {
						required: true
						},
			keyword: {
						required: true
						},
			username:	{
						required: true
						}
					},				
		messages:{		
			
			name:{
						required: "<li>Please enter Name</li>"
							 },
			file_location:{
						required: "<li>Please enter File Location</li>"
							},
			keyword:{
						required: "<li>Please enter Text</li>"
							},
			username:{
						required: "<li>Please enter Username</li>"
							 }	
					}
		});


	$('.category').each(function() {
		$(this).rules('add', {
		required: true,
		messages: {
		required: "<li>Please select Category</li>",
		}
	});
	});

	$('.hdd').each(function() {
		$(this).rules('add', {
		required: true,
		messages: {
		required: "<li>Please select Harddisk</li>",
 
		}
	});
	});


});